﻿using DarkSKL_Core.MongoDBModules.Models;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Dark_Core_Server.Models.Article
{
        /// <summary>
        /// 评论文档
        /// </summary>
        public class CommentDocument : DocumentUnit
        {
            /// <summary>
            /// 文章ID
            /// </summary>
            [BsonRepresentation(BsonType.ObjectId)]
            [BsonElement("ArticleId")]
            public ObjectId ArticleId { set; get; }
            /// <summary>
            /// 用户ID
            /// </summary>
            [BsonRepresentation(BsonType.ObjectId)]
            [BsonElement("UserId")]
            public ObjectId UserId { set; get; }
            /// <summary>
            /// 评论内容
            /// </summary>
            [BsonRepresentation(BsonType.String)]
            [BsonElement("Content")]
            public string Content { set; get; }

        }
}
